package dyyx;

import java.util.Date;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {


	private static final String VERSION = "spring-cloud-actuator-2019-05-16 16:15";

	@GetMapping(value = "/status")
    public String status() throws Exception {
        return VERSION;
    }
	
    @GetMapping(value = "/hello")
    public String hello() throws Exception {
        return "hello spring cloud actuator,"+new Date();
    }
}